<?php
namespace app\serverfund\model;

use \app\manage\model\BaseModel;

/**
 * @author:      李颖
 * @DateTime:    2017-09-08 10:29:15
 * @Description: 支付日志记录
 */
class PayLog extends BaseModel
{
    protected $name = 'pay_log';
    protected $connection = 'db_config_fund';
    protected $dateFormat = 'Y-m-d H:i:s';
    protected $statusText = [0=>'待支付',1=>'支付成功','支付失败'];
    protected $append = ['status_text'];

    public function setReceiveParamAttr($value)
    {
        return json_encode($value);
    }
   
    public function getReceiveParamAttr($value)
    {
        return json_decode($value, true);
    }

    public function setReturnParamAttr($value)
    {
        return json_encode($value);
    }
   
    public function getReturnParamAttr($value)
    {
        return json_decode($value, true);
    }

    public function setOperateStepsAttr($value)
    {
        return json_encode($value);
    }
   
    public function getOperateStepsAttr($value)
    {
        return json_decode($value, true);
    }

    public function setStepsOperateResultAttr($value)
    {
        return json_encode($value);
    }
   
    public function getStepsOperateResultAttr($value)
    {
        return json_decode($value, true);
    }


}